"I did what I thought was the right thing. I have worked very hard to keep this team united for the last eight months despite problems. So when anyone accuses me or the team of fixing matches then I have no option but to resign," Younis said in an interview.
Younis said apart from being hurt by allegations of match-fixing, there are some other issues as well that prompted him to hand over his resignation to Pakistan Cricket Board (PCB) chairman Ejaz Butt.
"I don't want to elaborate on them but the last eight months have been tough for me and I have still tried to do my best as captain and player to unite the team," he said.
"I played with a broken finger in the Champions Trophy because I wanted the team to do well. I have always tried to lead from the front. I may have made some mistakes but my intentions have only been for the betterment of the team and Pakistan cricket," he added.
Younis said after putting in so much effort, it was natural for him to feel upset when fingers are being pointed at his decisions and the team's performances.
Younis also indicated that he is not satisfied with the PCB's way of dealing with certain issues concerning the team.
"I will have a very frank discussion with the chairman of the board whenever he invites me to discuss my resignation because some issues need to be sorted out like the term of my captaincy," he said.
Younis said he is astonished by the sharp criticism as he had led the team to the Twenty20 World Cup title just a few months ago.
"As captain in the last eight months I have set certain goals for myself and the team and I just want to know what this criticism against me is about. Has not the team shown any improvement in the last eight months? Is there no difference in the performance of the side now?" he asked.
Sources said Younis is also upset at the way the PCB chairman had been entertaining the team officials and some players in separate meetings without bothering to talk to him.
Younis said he would not like to be called for any hearing of the parliamentary body in future as his job is to perform as a player and not to give explanations to everyone about the team's performance.
"The board and team officials are the ones who are the right people to give answers if anyone wants to know anything about the team," he said.
Champions Trophy belongs to Pakistan: Younis Khan
Dhoni blames bowlers for loss to Pakistan
Pakistan chairman says tours could resume shortly
No back-channel talks with Pakistan, says India
I am not bothered about losing captaincy: Younis