Who is the defendant?

In a court case, there are two different parties: the defendant and the plaintiff. The defendant is the person or party being accused of some sort of wrongdoing; criminal or otherwise. They get as many rights to representation as the plaintiff does.