A drug dealer caught with almost £2,000 worth of ecstasy in crystal form has been jailed for two and a half years.

Daniel Kibblewhite, 19, had the drugs at his Westbury home when police raided it in the spring of last year.

And while Kibblewhite was on bail he turned to selling cannabis to repay his dealers for the confiscated ecstasy.

Tessa Hingston, prosecuting, told Swindon Crown Court how police raided his home on Friday, May 31.

In his bedroom they found the drugs, in crystal and rock form, which had an 85 per cent purity and a street value in the region of £1,800.

They also found a small amount of cannabis which it is accepted was for his own personal use.

Kibblewhite, of Castle View, Westbury, pleaded guilty to possessing class-A drugs with intent to supply and simple possession of cannabis.

Alex Daymond, defending, said the amount of drugs he had for supply made the case so serious that he realised he was facing a jail term.

Following his arrest Kibblewhite was released on bail and sought to try and repay the dealers who had allowed him to have the ecstasy without paying for it up front.

In August last year a keen-nosed policeman noticed a strong smell of cannabis coming from the defendant when he stopped him in Westbury.

When he searched his duffle bag he found two bags of herbal matter, which turned out to be of the powerful skunk variety, and £230 in cash.

And on his mobile phone they found a series of text messages relating to cannabis dealing including one referring to the sale of a nine ounce bar of the drug.

When he was arrested the second time he told the officer: "Now I am going to have to double deal tomorrow to pay my debts. Prison won't help me.

"I'll just get more contacts and deal more. I was just sitting there quietly, why did you have to bother me?"

At a hearing last year he pleaded guilty to possessing cannabis with intent to supply and was put on a community order by a judge.

Passing sentence on the ecstasy matters Recorder Alastair Malcolm QC said he had no option but to jail him.

He said: "You have pleaded to a serious offence and as your counsel is realistic enough to accept the amount of drugs that you were involved in was such that I must pass a custodial sentence.

"At the time you committed these offences you had a pretty clean record. I take into account your age."

He also ordered the community order imposed in December be revoked as Kibblewhite would not be able to comply with it.