Lateran IV imposes annual confession to a priest (1215)
Canon 21 of Lateran IV, Omnis utriusque sexus, ordered that every one of the faithful, having reached the age of discretion, confess all his sins at least once a year to his own priest, under pain of being excluded from the church and from Christian burial. Trent afterwards declared the confession of all mortal sins to be of divine right, and anathematized anyone who denied the annual obligation of the Lateran.
It is the same council that defined transubstantiation. Scripture commands us to confess our sins to God and to one another (1 John 1:9; Jas 5:16), not to a priest as a condition of forgiveness.