The history of Gebze dates back to ancient times, when the first fortified settlements appeared on the strategically important lands of modern-day Turkey. In ancient times, the city was known as Dakibyza and Libyssa. It was in Libyssa in 183 or 182 BC that the great Carthaginian general Hannibal found his final resting place, choosing death over Roman captivity.
Located on the shores of the Sea of Marmara, the city served as a natural bridge between Constantinople (modern-day Istanbul) and the eastern regions of Asia Minor. Thanks to this geographical position, Gebze developed for centuries as a vital transportation hub and a transit point for trade caravans and expeditions.
A new stage of development began during the Ottoman Empire. Significant cultural and economic growth occurred in 1523, when, by decree of the vizier Coban Mustafa Pasha, a monumental complex of buildings was erected here, including a mosque, a madrasah, and a caravanserai. This construction transformed the city into a thriving center for crafts and trade, shaping its identity for centuries to come.