What is discovery and what is its purpose?

Discovery allows both parties to “discover” or to be made aware of the information in the case. The purpose is to narrow the basis of the complaint and to eliminate surprises to both parties.