Toyota and Mazda have reached an agreement under which Toyota will license hybrid technology for use by Mazda.