Do the trick

Origin of: Do the trick

Do the trick

Achieve one’s purpose, dates from the early 19th century. Trick in this sense means a particular way of working or doing something.