This book does not name the author. However, since early Christian times, most Christians have thought that the Apostle John was the author. He also wrote of the Gospel of John.
John wrote this letter to Christians at a time when false teachers were troubling them. John wrote this letter because he wanted to prevent believers from sinning. He wanted to protect believers from false teachings. And he wanted to assure believers that they were saved.