It is not illegal to get a loan after being declared bankrupt, however, this will be visible on your credit record for 6 years, meaning your options are quite limited. Many lenders now specialise in providing loan to applications with bad credit.