Seasoning transforms the oil into a protective, non-stick layer through a chemical reaction known as polymerization and further thermal decomposition through a process called carbonization.
The ability of an oil to polymerize well and therefore create a good non-stick surface on a cast iron depends on a few factors, as listed in the full post.