Who Pays for Background Investigations?

Who pays for your background investigation? You? Your company? Maybe it's the federal government agency who wants you to work in a classified environment?