A release agent comprising a resin containing siloxane segments is described. The resin has been modified with a silane coupling agent containing at least one free isocyanate group and contains one or more hydrolyzable silyl groups in side chains of its molecule.