1781, "one who has the care or custody of anything" (a library, a lunatic, etc.), from custody (Latin custodia) + -an. In this sense Middle English had custode (late 14c.), custodier (late 15c.). As "janitor," by 1944, American English, short for custodian-janitor (by 1899). Related: Custodianship.