Meghan was on Thursday pictured placing a bouquet of white roses tied with a purple ribbon at one of the crosses put up in honour of the victims near the site of the massacre.
A spokesperson for the duchess said she took the trip in a personal capacity as a mother to offer her condolences and in-person support to a community in grief.
Meghan was also pictured looking down at the white crosses bearing the names of those who lost their lives to the gunman’s rampage at Robb Elementary School in the small town of Uvalde.
She laid her flowers near the cross of 10-year-old Uziyah Garcia, which had the words “you will be missed” written on it, according to the Los Angeles Times.
Meghan, who lives in California, was not accompanied by husband Harry during her visit to the memorial.
She was wearing a baseball cap, T-shirt, jeans and trainers.
On Tuesday, 18-year-old Salvador Ramos used a semi-automatic rifle to shoot pupils and teachers in the deadliest school attack since 20 children and six adults were killed at Sandy Hook Elementary in Newtown, Connecticut, in 2012.
The gunman barricaded himself in a classroom and opened fire until police eventually broke in and shot him dead.