What is mediation?

I have to go to a mediation in a few days with my baby daddy. What exactly is mediation? And will him and I have to be in the same room and if so, do I have to speak? Or can my attorney speak for me?