During the opening ceremony, President Erdogan said that the Muslim civilization in Iraq, Syria and Jerusalem was under attack, adding that it was important to protect the mosques and heritage left behind by our ancestors.
"The legacy left behind by our ancestors has been intentionally destroyed," he said.
Speaking about last summer's defeated coup where mosques were also targeted, he said, "Those who attack Turkey, target our places of worship first."
"Allah willing, no one will be able to silence the Muslim call to prayer," he said.
President Erdogan said that Turkey was also building new monuments, adding that it was important to educate the coming generations about religion, culture and history.
The restoration of the Yildiz Hamidiye Mosque was carried out by the Directorate General of Foundations at a total cost of 27 million Turkish liras ($7.6 million).
The mosque was built 132 years ago during the period of the Ottoman Sultan Abdulhamid II.