Usually GPIO pins work with 3.3V and low current sink/source capabilities.
To drive a relay the following circuits are recommended:
transistor-relay.png
opto-relay.png