A woman phoned police to say a man was forcing her to grow cannabis plants at a house in Hamilton.
Officers found 27 plants, worth around £5,400, in a bedroom of the Hill Street property.
James Ashcroft, of Dunkeld Place, Hamilton, appeared at the town's sheriff court this week.