Why was JFK shot?

We've all been taught that Lee Harvey Oswald killed him, but there are many many opinions as to why he was shot. And if Oswald was truly the trigger man. If he was, why? Was there a bigger story than this man just not liking the president? Discuss