Those films were written and directed by Christopher Nolan, who also collaborated with his brother Jonathan Nolan on the screenplays.
While Marvel and DC Comics are both major comic book publishers, they are separate companies. Batman is a DC Comics character, and Marvel Comics has no involvement in the creation or production of Batman films.