A rack is a non-empty set with a binary operation such that right multiplication is an automorphism. New racks closely related to the braid groups and the mapping class groups will be introduced using "cords" on surfaces, and their structure will be investigated. Emphasis will be laid on the racks of cords on the plane and the sphere. In particular, their presentations and the center of the associated group of the rack of cords on the sphere will be given.