Is It a True Story?

What really happened behind movies that say they are based on a true story, and what the films changed.