The best option to reach the Mosque is to take streetcar line T1 and stop at Sultanahmet station.