From Latin 'commodus' (suitable), which contains 'modus' (measure) — to accommodate is to make something fit.
To provide lodging or sufficient space for; to adjust or adapt to someone's needs or wishes.
From Latin 'accommodātus,' past participle of 'accommodāre' (to make fit, to adapt), from 'ad-' (to) + 'commodāre' (to make fit), from 'commodus' (suitable, convenient), itself from 'com-' (with, together) + 'modus' (measure, manner, way), from PIE *med- (to measure, to take appropriate measures). The word entered English with the sense of making something suitable or fitting, and only later acquired the dominant modern meaning of providing lodging. The PIE root *med- is the ancestor of 'measure,' 'medicine' (taking