 The Catholic Church's position specifically on homosexuality developed from the teachings of the Church Fathers, which was in stark contrast to Greek and Roman attitudes towards same-sex relations, including pederasty.Canon law regarding same-sex sexual activity has been shaped through the decrees issued by a series of ecclesiastical councils.Initially, canons against sodomy were aimed at ensuring clerical or monastic discipline, and were only widened in the medieval period to include laymen.