Sloka is a residential area and neighbourhood of the city Jūrmala, Latvia.
Sloka is first mentioned in historical records in 1255 under the names Slock and Schlocken.
It developed as a fishing village at the river Slocene under the Livonian Order.
During the 17th century the Duke of Courland established lime kilns, copper furnaces and a foundry in Sloka.
Under Russian law, Sloka gained town rights in 1878.