Douglas Harper's Etymology Dictionary master-work c.1600, from master (n.) + work (n.). Probably based on a Dutch or German model.