Pope Francis has said that Christians and the Roman Catholic Church should apologise to gay people and seek their forgiveness for the way they have been treated.
He made the comments to reporters as he flew back to Rome from Armenia.
The pope was asked if he agreed with comments by German Cardinal Reinhard Marx that the church needed to say sorry for the way it has treated the gay community.
"We Christians have to apologise for so many things, not just for this [treatment of gay people], but we must ask for forgiveness. Not just apologise - forgiveness," he said.
"The question is: if a person who has that condition, who has good will, and who looks for God, who are we to judge?" the pope added.
He repeated his famous "Who am I to judge?" remark about homosexuality made early in his papacy.
That comment was one of the first indications that the Vatican under Pope Francis' leadership would take a more conciliatory approach to the gay community, but also prompted criticism from the Church's more conservative members.
Francis expanded his apology to also include other people who have faced discrimination.
"I think that the church not only should apologise ... to a gay person whom it offended but it must also apologise to the poor as well, to the women who have been exploited, to children who have been forced to work."
The comments come just two weeks after the Orlando massacre at a gay nightclub in which 49 people were killed.
At the time the Holy See condemned the attack as a "homicidal folly and senseless hatred".