These epistles are probably among the latest written books of the New Testament. They were probably written in Ephesus, close to the end of the first century. John was an old man by now. He had followed Jesus when he was probably just a teenager, and had served his Master for all these years.
These books bring out an important perspective of Christ and the Church.