The Foundation of General Relativity