The only free and comprehensive online etymological dictionary of the Spanish language
co-, con-, com- (Prefix) "within;" "with"
From Latin co(n)- which originally had a role of forming the perfect (a sense retained in cumplir) but later meant "with," "together." Ultimately from cum "with" (see con).