Was Theodore Roosevelt a Republican?

For his eight years as US President, Roosevelt was a Republican. He did, however, in an effort to defeat President William H. Taft, form the Bull Moose Party. His attempt proved unsuccessful.