Jim Jones and the Peoples Temple relocated to Jonestown, Guyana, in 1977 primarily due to negative publicity and increasing scrutiny in the United States. Defectors from the church had begun to tell stories of abuse and misconduct within the Temple, attracting unwanted media attention. Jonestown was envisioned as a utopian settlement where the members could live without external interference and was promoted by Jones as a peaceful sanctuary away from perceived threats and oppression in the U.S.
In Guyana, far from the prying eyes of the media and authorities, Jones sought to maintain control over his followers. He had been constructing the Jonestown settlement for several years as a potential retreat (source).
For more detailed information, you can also refer to sources like Britannica.