Can I sue my Former Boss or Company for firing me for a bad reason?

You were fired from a job you love, a job was really needed to keep. What’s worse, your boss or supervisor screwed you. It’s clear the company did is is flat-out wrong. When can you sue?