<Tr> <Td> </Td> <Td> </Td> </Tr> <Tr> <Th> Iran </Th> <Th> Pakistan </Th> </Tr> <P> After Pakistan gained its independence in August 1947, Iran was the first country to recognize its sovereign status . Pakistan's relations with Iran grew strained at times due to sectarian tensions, as Pakistani Shias claimed that they were being discriminated against under the Pakistani government's Islamisation programme . </P> <P> Iran and Saudi Arabia used Pakistan as a battleground for their proxy sectarian war, and by the 1990s Pakistan's support for the Sunni Taliban organisation in Afghanistan became a problem for Shia Iran, which opposed a Taliban - controlled Afghanistan . </P>

Which country's head visit to pakistan first