Insurance Indemnity matters

What is the purpose of an indemnity? Do I really need professional indemnity insurance? What are the types of indemnity? Who should pay for indemnity?