Article Two of the United States Constitution
The President may ask the "principal (head) officer" of any executive department to give him advice in writing.  The Constitution actually does not require a formal Cabinet.  However, America's first President, George Washington, organized his principal offices into a Cabinet, and every President has done the same since.