Mahabad lies close to the borders of Turkey and Iraq and is home to many ethnic Kurds and minority Sunni Muslims .