Thousands of offenders leave prison each year unprepared for life on the outside. Returning to impoverished neighborhoods, they lack job skills and support systems. Not surprisingly, nearly half of released inmates are back behind bars within three years.

The public’s fear of crime — and politicians’ fear of being perceived as soft on crime — has resulted in more and longer incarcerations in recent decades. Now lawmakers are once again embracing the sensible concept of rehabilitation.

President George Bush made the sea change official last week by signing the Second Chance Act, a measure that passed with overwhelming bipartisan support in Congress.

State and local governments and nonprofit groups will receive $165 million a year to help offenders with schooling, drug and alcohol treatment, housing, employment and the rebuilding of family and community ties.

States, motivated in part by fiscal concerns, have already been moving in that direction. Kansas passed a law last year creating community corrections districts and making money available for services to offenders serving probation or parole.

Early results show that people are about 30 percent less likely to violate the terms of their probations or commit new crimes if they receive drug and alcohol treatment and other services, said Rep. Pat Colloton, a Leawood Republican who spearheaded the legislation.

The effort has enabled Kansas to postpone a costly prison construction program.

The early success of the Kansas program earned Colloton an invitation to Bush’s signing ceremony in Washington. U.S. Sen. Sam Brownback, a key Republican sponsor of the federal legislation, also attended.

Rehabilitation undoubtedly will have its failures. Some will make headlines. And no one is recommending that murderers, sex offenders and violent criminals be quickly put back into society.

But too much of the nation’s prison space is occupied by the mentally ill, and by persons arrested on drug crimes and probation violations. Our resources are much better spent on education, treatment and housing for this population than on lengthy and repeated incarcerations.