The keys of the kingdom is a Christian concept of eternal church authority. Christians believe it was established in the 1st century AD, initially through Saint Peter then through the rest of the 12 Apostles. The latter, continuing with the early Church Fathers, would eventually comprise the early church and its doctrine. It is this authority, having been given the keys, that subsequent doctrinal points have been built upon.
The authority can be traced to one passage in the New Testament, where Jesus mentions them first in response to St. Peter answering a question and secondly in speaking to a group of disciples. In these two instances, the concept of authority follows having been given the "keys of the kingdom of heaven" and regards loosing and binding things on earth, and thus having loosened and bound the same in heaven (Matthew 16:19, Matthew 18:18). A third authority regarding sin is seen without mentioning "keys" in John 20:23.