To conform means to adapt to fit in with new conditions. So if you travel to Morocco, you should conform to the local custom and adjust your usually skin-bearing wardrobe to one that is more modest.
Sometimes conform gets a bad rap, carrying with it the sense of compromising one’s individuality to fit in or please others. But take note that it doesn’t always have to carry such a negative charge. For example, the manager of a factory that produces bouncy balls would want each ball that came off his conveyor belts to conform to a high standard of durability, bounciness, and roundness.