The National Credit Code is a Australian Federal Law that regulates consumer credit. It also regulates loans made to individuals that are for the purpose of purchasing or improving real estate for investment purposes.