The letters to Timothy begin shortly after the end of Acts, with Paul’s release from Rome in 62 AD. Paul writes a personal letter to Timothy, but it is evident from the language that it is an open letter.
In Ephesus, where Timothy was, there were people, at least two known to Paul, who were teaching a sort of legalistic Gnosticism. These people suggested reading the Bible through some sort of lens. Paul condemns this sort of interpretation of the Bible. These people focused more on the law, which was for the correction of those who are in error, rather than on love.