If the light came on within 24 hours after filling up, it could be caused by a loose gas cap. Remove the cap and tighten it back up. It could take up to 24 hours for the check engine light to go away, or you can reset it with a code scanner. If the gas cap is broken, it must be replaced.