Set across the Persian Gulf from Iran and just east of Saudi Arabia , Dubai is the financial capital of the United Arab Emirates , a federation of seven sheikdoms that won independence from Britain in 1971 .