Ford F150 is having some kind of start-up problem?

Vehicle: 2007 Ford F150 5.4L

I start the truck up in the morning time and it comes on fine but after I drive it, shut it off, and then try to start it back up it takes about three tries for it to work. Also the check engine light stays on. What could be the problem?
7 answers 7