A beagle named Miss P beat out over 2,700 competitors and was named Best in Show at the Westminster Kennel Club Dog Show Tuesday night in New York.

The 4-year-old, 15-inch Miss P was only the second beagle to ever take the top prize. Her great-uncle, Uno, pulled off the feat in 2008. Miss P also became the 36th female to be named Best in Show.

Miss P beat out Matisse, a Portguese water dog that's a cousin of President Barack Obama's family pet Sunny and was the top-winning male in show dog history. Judge David Merriam also picked her in the best-of-seven final ring over an old English sheepdog named Swagger that placed second in 2013 and clearly was the crowd favorite, a standard poodle, a shih tzu owned by Patty Hearst and an English springer spaniel and a Skye terrier, who came in second this year.

Miss P was the one that charmed Merriam, a retired California trial-courts judge who has spent more than 50 years with dogs, but was judging a best in show for the first time Tuesday night.

"She never let me down. She didn't make any mistakes," handler Will Alexander said.

There's no prize money for winning Westminster. Instead, there's prestige forever in dog circles, plus the possibility of lucrative breeding rights.

The tri-colored Miss P also earned a full day Wednesday -- appearances on morning TV shows, a meeting with Donald Trump, lunch at prominent Manhattan restaurant Sardi's and a walk-on part in the Broadway hit musical "Kinky Boots."

It was the 20th best in show win in the United States for the Canadian-born Miss P. The dog lives in both Milton and Enderby, British Columbia. Her call name is short for Peyton, and her official champion's name is Tashtins Lookin for Trouble.

One of her owners is Eddie Dziuk, a co-owner of Uno, who now lives on a ranch in Texas and turns 10 in May. Her other co-owners are Lori Crandlemire and daughter Kaitlyn.

The two-night event was the 139th Westminster show, making it the second-longest continuously held sporting event in America after the Kentucky Derby.

The Associated Press contributed to this report.