Mo Brooks was the more libertarian candidate, Luther Strange was the appoint incumbent. Trump backed Strange in the Primary.
\Primary results:
Republican Roy Moore 164,524 38.9%
Republican Luther Strange (incumbent) 138,971 32.8%
Republican Mo Brooks 83,287 19.7%
In the runoff:
Republican Roy Moore 262,204 54.6%
Republican Luther Strange (incumbent) 218,066 45.4%
President Donald Trump supported Moore's opponent Strange during the primary runoff, and almost the whole national Republican establishment wanted Strange to win. Trump's efforts on behalf of Strange included a rally in Alabama, plus tweeting.