Steven Moffat, the driving force behind hit TV shows Sherlock and Doctor Who, said he was "just really, really happy" to get an OBE for services to drama.
He said: " I never thought I would get something like this. I'm astonished and more thrilled than I ever thought someone like me would be. I'm not the least bit cynical, or the least bit trying to be cool about it. I'm just really, really happy."
His journey to the television studio started in the classroom when the then teacher came up with an idea for a show about a school newspaper.
Press Gang made stars of its young cast including Dexter Fletcher and Julia Sawalha and launched Moffat into the world of television.
He wrote some of the episodes for the revived Doctor Who and took over from Russell T Davies as executive producer and chief writer on the show in 2008.
Since then, he has guided the show to new heights and steered it successfully through several regenerations of its title character.
Moffat, whose credits also include Coupling and Chalk, had even more success with another revival when he brought master sleuth Sherlock Holmes into the modern world.
The idea for the show, which features Benedict Cumberbatch and Martin Freeman as Holmes and Watson, came out of a conversation with the actor and fellow Doctor Who writer Mark Gatiss and has been an international hit.
Rhodri Talfan Davies, director of BBC Wales, congratulated Moffat and said his work with Doctor Who, which is filmed in Cardiff, had helped the country.
He said: " We're thrilled to see Steven's creative brilliance being recognised today. Not only has he enthralled countless millions of viewers across the world, he has helped rocket-boost the Welsh creative sector, inspiring a new generation of talent here in Wales to make their mark on the global stage.
"I'm so delighted to see his remarkable achievements being honoured."