The city has a long and turbulent history although the early history of Tabriz is shrouded in legend and mystery, the town's origin is believed to date back to distant antiquity, perhaps even before the Sassanian era (224 - 651 A.D.). The oldest stone tablet with a reference to Tabriz is that of Sargon the second, the Assyrian King. The tablet refers to a place called Tauri Castle and Tarmkis. The historians believe this castle was situated on the site of the present day Tabriz. It was the capital of Azarbaijan in the 3rd century A.D. and again under the Mongol Ilkhanid dynasty (1256 - 1353), although for some time Maragheh supplanted it.