According to California law, a minor under 18 years of age must be accompanied by an adult when staying at a hotel or motel. The only exception is if the minor has written permission from their parent or guardian and can provide proof of identification upon check-in.