Basically any function you can dream up
Mostly its used for making Side scrolling platformer's or creating Depth in Topdown games...
You can also use it to make menus or webpages more visually interesting etc
Other than that it doesn't really have functions...its mainly an aesthetic design element but can be used in many other creative ways..