Jews were subject to a wide range of legal disabilities and restrictions throughout the Middle Ages, some of which lasted until the end of the 19th century.
The Fourth Lateran Council in 1215 was the first to proclaim the requirement for Jews to wear something that distinguished them as Jews (and Muslims the same).