Ibn Ezra was a close friend of Judah Halevi, who was some 14 years older. When Ibn Ezra moved to Córdoba as a young man, Halevi followed him. This trend continued when the two began their lives as wanderers in 1137. Halevi died in 1141, but Ibn Ezra continued travelling for three decades, reaching as far as Baghdad. During his travels, he began to compose secular poetry describing the lands through which he was travelling as well as beginning to pen the deeply rational Torah commentaries he would be best remembered for.