The Musk Foundation is a private grantmaking foundation founded in 2002 by technology entrepreneur Elon Musk and his brother, Kimbal.  The brothers are the foundation’s sole officers; Elon Musk is president and board director and Kimbal Musk is secretary, treasurer, and board director. 
According to its website, the Musk Foundation makes grants in support of five areas, some of which intersect with Musk’s business ventures: “renewable energy research and advocacy,” “human space exploration research and advocacy,” “pediatric research,” “science and engineering education,” and “development of safe artificial intelligence to benefit humanity.  Charitable recipients of Musk Foundation grants include international aid nonprofits such as Doctors Without Borders, healthcare organizations such as World Spine Care, and the co-educational Mirman School for Gifted Children.
Also see Elon Musk
In 2016, Musk donated 1.2 million shares of Tesla stock, worth $254,614,000 at the time, to the Foundation.  Drew Millard of the Outline wrote in 2018 that the timing of the donation allowed Musk to avoid taxes and to avoid ceding shares to his second wife, who filed for divorce in the spring of 2016. 
According to its website, the Musk Foundation makes grants in support of four areas: “renewable energy research and advocacy;” “human space exploration research and advocacy;” “pediatric research;” and “science and engineering education.” 
The Foundation has donated to non-political causes, including $480,000 in grants for water filtration in Flint, Michigan and $424,000 to supply laptop computers to Flint middle-schools. Other recipients of Musk Foundation grants include international aid nonprofits such as Doctors Without Borders, which was given $100,000 in 2012 alone, healthcare organizations such as World Spine Care, and the co-educational Mirman School for Gifted Children.  
Artists for Peace and Justice, which helps disadvantaged people internationally through education, and Haitian Relief Organization—which helped with recovery in Haiti after a tsunami struck that nation—received funding from the Musk Foundation in 2011. Artists for Peace and Justice received $129,708. Haitian Relief Organization received $61,370.  
The Musk Foundation supports organizations which push a left-of-center agenda, particularly environmentalist organizations.
Global Green has received multiple donations, including one worth $45,980 in 2007. The Sierra Club Foundation received $250,000 in 2014.  Other recipients of Musk Foundation grants include the National Wildlife Federation; the funding and fiscal sponsorship group New Venture Fund; Energy Foundation; Oxfam America; Oceana; the BlueGreen Alliance Foundation; the Tides Center; and Natural Resources Defense Council (NRDC).   
Other explicitly left-wing organizations which have received funding are the William J. Clinton Foundation, People for the American Way Foundation, and Transgender Law Center. All received funding in 2011 totaling $19,200, $7,200, and $2,500, respectively.  
The Musk Foundation has made small contributions to a handful of right-of-center nonprofits. The libertarian think tank Cato Institute received $5,000 in 2007. In 2005, Citizens Against Government Waste received a $10,000 grant; National Taxpayers Union received $2,500 in the same year. 
Some of the Musk Foundation’s donations have generated controversy. Its 2016 IRS filing (Form 990) shows that its largest donation that year was $37,798,322 and went to donor-advised fund provider Vanguard Charities.  Nonprofit Quarterly editor-in-chief Ruth McCambridge criticized the donation because of the lack of payout and transparency regulations related to donor-advised fund providers. 
The left-leaning newspaper the Guardian conducted a thorough examination of the Foundation’s donations in a January 2019 profile.  Their investigation found that the Foundation frequently donated to charities in which Musk’s family and/or his companies have financial and other interests. The article clarified that none of the payments were illegal, and cited charity experts who said that many were within charitable norms. 
Elon Musk is president of the Musk Foundation. His brother, Kimbal Musk, is secretary and treasurer. They received no compensation from the Foundation in 2016.