Captured Indian airman Wing Commander Abhinandan has been officially released by Pakistan to his country at about 8.11pm local time on Friday.
Abhinandan was released at the Wagah border crossing on the demarcation line dividing the two countries.
The pilot was captured on Wednesday, after the military jet he was flying in was shot down by the Pakistani army.
Indian had carried out a retaliatory attacks on its neighbour’s military establishments over the killing of 40 troops by a group in Pakistan earlier this year.
The group said it carried out the attack over India’s control of the disputed Kashmir region.
A statement from Pakistan’s Ministry of Foreign Affairs, said the pilot was “treated with dignity and in line with international law” while in detention.
Pakistani Prime Minister, Imran Khan, had promised to release the captive, saying the offer is a “gesture of peace”. He also said it should be seen as an expression of his country’s willingness to de-escalate recent tension between the two countries.
Reports say the airman was captured and beaten by locals, after his plane was brought down.