BMW bought Swiss team Sauber in June 2005 to form the BMW Sauber F1 Team. The takeover came after BMW's relationship with Williams had deteriorated in the previous months, the partnership ending at the end of the season. The team was based at Sauber's headquarters in Hinwil, Switzerland and BMW's headquarters in Munich, Germany.