The Spanish conquest of the Philippines was ordered by Philip II of Spain, and Andrés de Urdaneta was the designated commander. Urdaneta agreed to accompany the expedition but refused to command and Miguel López de Legazpi was appointed instead. The expedition set sail on November 1564. After spending some time on the islands, Legazpi sent Urdaneta back to find a better return route. Urdaneta set sail from San Miguel on the island of Cebu on June 1, 1565, but was obliged to sail as far as 38 degrees North latitude to obtain favourable winds.