Cain's offering was not accepted because it was not given with a sincere heart or with the proper attitude of worship. Additionally, his offering was not of the best quality, as he gave some of his produce rather than the best of his harvest. This lack of sincerity and quality in his offering displeased God.