California has begun accepting driver’s license applications from immigrants who are in the country illegally.

Despite near-freezing temperatures, hundreds of immigrants lined up as early as 2 a.m. Friday at a temporary Department of Motor Vehicles office in the city of Stanton to begin the process of obtaining licenses. A crowd also quickly gathered at a DMV center in San Jose.

The DMV expects 1.4 million people will seek a license in the first three years of a program aimed at boosting road safety and making immigrants’ lives easier. Statewide, more than 9,300 people had scheduled appointments and 2,000 or those were Bay Area residents.

Some applicants may receive licenses Friday if they previously had one. First-time applicants will receive permits if they pass a written test. They will have to return for a driving test at a later date.

California officials say they can’t predict how many people will line up to apply Friday, but the number of people making appointments for a license more than doubled when immigrants were allowed to sign up. Appointments are required to apply for a license except at four newly-created DMV offices, including one in East San Jose.

California is one of 10 states that now provide licenses to immigrants in the country illegally. The licenses issued to immigrants without legal status will include a distinctive marking and are not considered a valid form of federal identification.

Immigrants in the country illegally have not been allowed to apply for a driver’s license in California since the state began requiring proof of legal presence during the 1990s.

Immigrant advocates have cheered the licenses as a way to integrate immigrants who must drive to work and shuttle children to school. But critics have questioned state officials’ ability to verify the identity of foreign applicants, citing security concerns.

Law enforcement officials say the program will improve road safety because licensed drivers must be tested and insured. A DMV study of 23 years of crash data found that unlicensed drivers were more likely to cause a fatal collision than licensed drivers.

State insurance officials hope the change will increase the number of drivers holding auto insurance, though some immigrants say they have always held insurance even though they could not get a license.

Maritza Aguirre, 30, is one of them. She used to take a two-hour bus trip to work cleaning houses in driving-dependent Southern California. Now, she drives but lacks a license and fears her car might be impounded if she is ever stopped by police.

“For me, honestly, it is a blessing,” said Aguirre, who has an appointment this week to apply for a license. “The relief of knowing they won’t take your car is a big advantage.”

Advocates have encouraged immigrants to seek the license. But they are warning those with deportation orders or criminal records to first seek legal advice since law enforcement can access DMV data.

Applicants must submit proof of identity and state residency and pass written and road tests. Those who don’t possess foreign government-issued identification on a list of approved documents can be interviewed by a DMV investigator to see if they qualify.

Starting on Friday, immigrants who pass the initial hurdles will get a driving permit. But they must return for a driving test before they can get the new licenses, which will be marked with the words “federal limits apply.”

Material from the Associated Press was used in this story.