It provides the proper tension on the serpentine drive belt.
it is a spring loaded pulley that keeps a constant pressure on the belt
Make and model required for an answer.
A tensioner automatically maintains the correct tension on the accessory drive belt.
The idler pulley usually has a square cut hole which is designed for you to use a 1/2" drive socket breaker bar to relieve tension on the belt.