A four letter word meaning the foundation of something is base.
The foundation of something can be described as its "base." The base of an object or concept is its fundamental support or underlying structure. It provides stability and strength to the rest of the entity.
have
The four letter word for repairing something is mend.
papa
asea