When John wrote the Book of Revelation, the Christians were under persecution by the Roman Emperor, who had banished him to the Isle of Patmos.
..........John was a pastor of the Church of Ephesus at that time and it was to that Church that the first 'Message to the Seven Churches' were given.
..............John was banished for "the Word of God and his testimony to Jesus Christ."