Answer:
First, you have to be selected by the Liberal Democrat Party to be their candidate for a constituency at the General Election (you don't have to be local to the constituency, but it helps). Then you have to win the election in that constituency.