Charge Controllers are used to protect your batteries. They can control the incoming voltage from a solar panel and change it to be compatible with your batteries.
There is 2 types of charge controllers:
Maximum Power Point Tracking (MPPT)
Pulse Width modulation (PWN)
An MPPT charge controller is going to give the maximum efficiency when charging your batteries.