Get breaking news alerts and special reports. The news and stories that matter, delivered weekday mornings.

EL PASO, Texas — For many Mexican-Americans living near the U.S.-Mexico border, the U.S. Border Patrol was viewed as a federal government agency to be feared. Its agents might raid the factory where you worked, question your citizenship status at checkpoints, and detain you if an agent thought you were in the country illegally or were hiding drugs.

To some Latinos, the work of the U.S. Border Patrol seemed racialized.

A museum dedicated to the history of the U.S. Border Patrol seeks to give a more complex view of a once unknown agency that rose from obscurity to become one of the nation’s most powerful arms of law enforcement. The privately funded museum in El Paso, Texas — near one of the busiest U.S. ports of entry — attempts to piece together its history as the nation’s views on immigration, travel and border security have changed.

Using photos, artifacts, newspaper clippings and even movie posters, the U.S. Border Patrol Museum explores the story from the agency’s formation — to fight Chinese immigration and enforce Prohibition — to its current role at a time of massive migration, cartel drug smuggling and political skirmishes.

Museum visitors learn about some of the challenges agents faced over the years, from rudimentary equipment to lack of jurisdiction. Mounted horsemen and poorly assembled vehicles gave way to high-tech helicopters and surveillance accessories as expectations of the agency increased.

Visitors can even jump into a retired helicopter and an all-terrain vehicle.

The Morning Rundown Get a head start on the morning's top stories. This site is protected by recaptcha

The evolution of the border-patrol uniform alone — from something resembling the mythic Old West lawman to today’s heavily armed agent in a post-Sept. 11 world — shows how the agency became professionalized over a century.

U.S. Border Patrol uniforms throughout the years are on display at a museum dedicated to the border patrol in El Paso, Texas on Nov. 29, 2018. Russell Contreras / AP file

Also on display is a rope ladder used by an alleged smuggler to climb over a border wall, and tools from an underground tunnel discovered in San Luis, Arizona.

There’s a raft made out of scrap metal, tire tubes and blue canvas used by Cuban migrants attempting to land in Florida. (Interestingly, the raft’s exhibit is called “Voyage to Freedom,” while exhibits about immigration from Mexico focus on border enforcement).

Congress created the U.S. Border Patrol in 1924, and the agency slowly grew as its mission transformed. Emmanuel Avant “Dogie” Wright and a handful of others were some of the first agents hired to guard nearly 2,000 miles (3,200 kilometers) of the southern border.

Kelly Lytle Hernandez, a University of California, Los Angeles history professor and author of “Migra!: A History of the U.S. Border Patrol” (University of California Press, 2010), says that initially there were no restrictions on Mexican immigration because U.S. agricultural growers wanted a steady stream of workers. That, of course, would change.

A vintage U.S. Border Patrol vehicle sits in a museum for the border patrol in El Paso, Texas on Nov. 29, 2018. Russell Contreras / AP file

For the most part, the museum does a fair job of explaining the agency’s metamorphosis. However, it downplays the corruption and mismanagement of its early days, and its role in discriminating against Mexican-Americans along the border that federal courts were forced to halt thanks to various challenges.

For example, in 1992 a federal judge ruled that the U.S. Border Patrol had violated the rights of Mexican-American students at Bowie High School in El Paso by repeatedly stopping them to ask about citizenship status. The border patrol was forced to change some of its tactics and focus on aggressive patrols along the El Paso area, focusing migrants to change their routes to the more unforgiving Arizona desert.

There also are some surprises.

Documents and photos illustrate the role the U.S. Border Patrol played in the Civil Rights Movement. In 1962, for example, Attorney General Robert Kennedy requested that 300 border patrol agents come to support U.S. Marshals working to ensure that black student James Meredith be allowed to enroll at the previously segregated University of Mississippi. Violence ensued, and 77 Border Patrol agents were injured.

A wall honors agents killed in the line of duty. In the early days, most of those agents were white. By the 1990s, most of those killed were Hispanic.

The U.S. Border Patrol Museum receives no federal funding and operates on donations. It’s an excellent introduction to an agency that remains little known to most Americans, beyond soundbites and quick images on cable news.

FOLLOW NBC LATINO ON FACEBOOK, TWITTER AND INSTAGRAM.