The history of Azerbaijan, being the historical region of northwestern Iran, spans thousands of years.